#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>

class MyPushButton : public QPushButton
{
    Q_OBJECT
public:
//    explicit MyPushButton(QWidget *parent = nullptr);
    //正常显示的图片,按下后显示的图片
    MyPushButton(QString normalImg,QString pressImg="");

    //往下跳
    void zoom1();

    //往上跳
    void zoom2();
    //重写按下事件
    void mousePressEvent(QMouseEvent *);
    //重写释放事件
    void mouseReleaseEvent(QMouseEvent *);

public:
    QString normalImgPath;//正常的图片
    QString pressImgPath;//按下的图片
signals:

};

#endif // MYPUSHBUTTON_H
